package com.finger.gulimall.product.dao;

import com.finger.gulimall.product.entity.SpuInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.finger.gulimall.product.vo.SpuInfoForOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * spu信息
 *
 * @author finger
 * @email 909128695@qq.com
 * @date 2022-03-16 12:43:42
 */
@Mapper
public interface SpuInfoDao extends BaseMapper<SpuInfoEntity> {

    void upProductStatus(@Param("spuId") Long spuId, @Param("code") int code);

    /**
     * 根据skuid查出对应的spu信息
     * @param skuIds skuid集合
     * @return 对应的spu信息集合
     */
    List<SpuInfoForOrder> selectBySkuIds(@Param("skuIds") List<Long> skuIds);
}
